package InterfaceLambdaAndInnerClasses.timer;

import javax.swing.*;
import java.awt.event.ActionListener;

public class TimerTest {
    public static void main(String[] args){
        ActionListener listener=new TimePrinter();

        Timer timer=new Timer(10000,listener);
        timer.start();
        JOptionPane.showMessageDialog(null,"Quit program?");
        System.exit(0);
    }
}
